<?php
/**
 * 全局json返回函数
 * @param  [type] $status [description]
 * @param  [type] $msg    [description]
 * @param  array  $data   [description]
 * @return [type]         [description]
 */
function show($status = null, $msg = null, $data = [])
{

    $res = [
        'status' => $status,
        'msg'    => $msg,
        'data'   => $data,
    ];
    exit(json_encode($res, JSON_UNESCAPED_UNICODE));
}
